package com.ruoyi.system.domain.city.vo;

import java.util.List;
import java.util.Objects;

/* loaded from: TradeOptionVo.class */
public class TradeOptionVo {
    List<TradeSecondOptionVo> children;
    private String text;
    private String value;
    private String label;

    public TradeOptionVo() {
    }

    public TradeOptionVo(String text, String value, String label, List<TradeSecondOptionVo> children) {
        this.text = text;
        this.value = value;
        this.label = label;
        this.children = children;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof TradeOptionVo)) {
            return false;
        }
        TradeOptionVo other = (TradeOptionVo) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$text  = getText();
        Object other$text = other.getText();
        if (this$text == null) {
            if (other$text != null) {
                return false;
            }
        }
        else if (!this$text.equals(other$text)) {
            return false;
        }
        Object this$value  = getValue();
        Object other$value = other.getValue();
        if (this$value == null) {
            if (other$value != null) {
                return false;
            }
        }
        else if (!this$value.equals(other$value)) {
            return false;
        }
        Object this$label  = getLabel();
        Object other$label = other.getLabel();
        if (this$label == null) {
            if (other$label != null) {
                return false;
            }
        }
        else if (!this$label.equals(other$label)) {
            return false;
        }
        Object this$children  = getChildren();
        Object other$children = other.getChildren();
        return Objects.equals(this$children, other$children);
    }

    protected boolean canEqual(Object other) {
        return other instanceof TradeOptionVo;
    }

    public int hashCode() {
        Object $text     = getText();
        int    result    = (59) + ($text == null ? 43 : $text.hashCode());
        Object $value    = getValue();
        int    result2   = (result * 59) + ($value == null ? 43 : $value.hashCode());
        Object $label    = getLabel();
        int    result3   = (result2 * 59) + ($label == null ? 43 : $label.hashCode());
        Object $children = getChildren();
        return (result3 * 59) + ($children == null ? 43 : $children.hashCode());
    }

    public String toString() {
        return "TradeOptionVo(text=" + getText() + ", value=" + getValue() + ", label=" + getLabel() + ", children=" + getChildren() + ")";
    }

    public String getText() {
        return this.text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLabel() {
        return this.label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<TradeSecondOptionVo> getChildren() {
        return this.children;
    }

    public void setChildren(List<TradeSecondOptionVo> children) {
        this.children = children;
    }
}
